package wwl.lsf.auth;

/**
 * @Title
 * @Author wangwenliang
 * @Date 2022/3/31
 * @Description
 */
public class ApiAuthDefaultImpl implements ApiAuth{
    ApiAuthDefaultImpl() {

        this.storePassWord = new MysqlStorePassWord();
    }

    ApiAuthDefaultImpl(StorePassWord storePassWord){
        this.storePassWord = storePassWord;
    }
    private StorePassWord storePassWord;
    @Override
    public void auth(String url) {
        ApiRequest apiRequest = ApiRequest.buildFromUrl(url);
        auth(apiRequest);
    }


    @Override
    public void auth(ApiRequest apiRequest) {

//        AuthToken.isEpire();
    }
}
